package com.zh.search.domain.dto;

import com.zh.search.enums.SortField;
import com.zh.web.base.BasePageDto;
import com.zh.web.enums.SearchType;
import com.zh.web.enums.SortType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "搜索参数")
public class SearchDto extends BasePageDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "搜索关键字")
    private String keyword;
    @ApiModelProperty(value = "创建人")
    private Long createOperator;
    @ApiModelProperty(value = "搜索类型",example ="article" )
    private SearchType searchType;
    @ApiModelProperty(value = "排序字段",example = "updateTime")
    private SortField sortField=SortField.UPDATE_TIME;
}
